
CC= gcc
CFLAGS= -Wall -ggdb -ansi -pedantic 
SRC= $(wildcard *.c)
OBJ= $(SRC:.c=.o)

all: mainTest

mainTest: $(OBJ)
	$(CC) -o $@ $^

%.o: %.c
	$(CC)  $(CFLAGS) -c $< -o $@

clean:
	rm *.o *[~#] mainTest
